home *** CD-ROM | disk | FTP | other *** search
- zlib for atari ST
- -----------------
-
- [ excerpt from readme file ]
-
- note: if you do not have or use compress, this is probably not for you...
-
- this was posted to alt.sources circa nov 1990. i thought it would be
- useful so i ported it to TOS. it provides a stdio-like stream interface
- for reading compressed files. the args are similar to "normal" stdio. i
- ported it to TOS (Alcyon). it should work fine with sozobon, gcc, minix(?)
- and whatever, though i have not tested it with these.
-
- what it does: it provides a READ ONLY stream interface for compressed
- files, i.e. those compressed which unix compress (of which there is, of
- course, a TOS version). up to 16-bit compress is supported.
- no support for "zfputc" or "zfputs" or "zprintf" is provided here. still,
- this is very useful indeed. currently it might be limited to compressed
- text files, at least with alcyon, though that will probably not be the
- case with gcc. i also runs fine under unix.
-
- included are:
-
- zfopen open a compressed (or normal) file
- zfclose closes compressed stream
- zfgetc get a single char from stream (does cr-lf translation)
- zfgets get a single line from stream
- zfeof test for EOF on stream
- zfilter for working with stdin
-
- this library will handle 16-bit compressed files. it has been tested with
- 16-bit compress 4.3 for the atari ST:
-
- compress 4.3 88/12/26 08:00:00 don
- Options: Unix MAXBITS = 16
-
- i have included an executable for zcat (the test program). see makefile
- for how to run it. all included in this post are alcyon-compatible libraries
- and aln index file (zlib.ndx). zlib.out is log of atari doindex command for
- aln random libraries.
-
- enjoy...
-
- -bill rosenkranz
- rosenkra%c1yankee@convex.com
-
-